package com.ryenlii.datatrans.client;

import cn.hutool.log.StaticLog;

public class Provider extends AbstractProvider {

    /**
     * 获取请求
     */
    public void get(final String key) {
        executeCommand(key, () -> {
            StaticLog.info("执行了获取指令, key：{}", key);
        }, null);
    }

    /**
     * 判断是否存在
     */
    public void exists(final String key) {
        executeCommand(key, () -> {
            StaticLog.info("执行了判断是否存在指令, key：{}", key);
        }, null);
    }

    public static void main(String[] args) {
        Provider provider = new Provider();
        provider.get("ss");
        provider.exists("sss");
    }
}